#ifndef _OS_DRV_INTER_H_
#define _OS_DRV_INTER_H_

#ifdef __cplusplus
extern "C"
{
#endif //__cplusplus

#include <semaphore.h>

#define OS_NAME_LENGTH_MAX	(32)
#define OS_THREAD_MAX		(64)

//typedef unsigned int petimer_t;

typedef struct _tagSemaphore
{
	sem_t sem;
	char pstrname[OS_NAME_LENGTH_MAX];
}Semaphore;

typedef struct _tagThread
{
	BOOL			bUsed;
	BOOL			bWaitingJoin;
	pthread_t		hThreadID;
	char			szName[OS_NAME_LENGTH_MAX];
	unsigned int	nPrio;
}TDRV_THREAD;

typedef enum _tagPriority
{
	TASK_PRIORITY_LOW = 7,
	TASK_PRIORITY_MIDDLE,
	TASK_PRIORITY_HIGH,		
}Priority;

#ifdef __cplusplus
}
#endif //__cplusplus

#endif


